package org.example.bobofish.user.infrastructure.persistence.map;

import org.example.bobofish.user.domain.model.UserRightsInfoModel;
import org.example.bobofish.user.infrastructure.persistence.entity.UserRightsInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author : yuxiong
 * @date : 2025/6/17
 */
@Mapper
public interface UserRightsInfoMapper {

    UserRightsInfoMapper INSTANCE = Mappers.getMapper(UserRightsInfoMapper.class);

    List<UserRightsInfoModel> convert(List<UserRightsInfo> userRightsInfo);

    UserRightsInfo convertReverse(UserRightsInfoModel userRightsInfo);
}
